Hi,

Every time I enable Lightbox alongside Brilliant Gallery I get the following popup error upon load when running Internet Explorer:
"Operation aborted" and the page won't load generating errors.

I did a research on the Web, finding this hint that may be of help resolving this issue:

http://clientside.cnet.com/code-snippets/manipulating-the-dom/ie-and-ope...

Firefox, Safari work perfectly generating no errors.

Regards,
ndg

Comments

stella’s picture

Assigned: Unassigned » stella

Hi,

I can't seem to reproduce this using the both the 5.x-2.1 and dev versions of lightbox in IE7. Is this an IE6 issue?

Cheers,
Stella

stella’s picture

Does lightbox2 work correctly when Brilliant Gallery is not enabled? Does the error appear with using Brilliant Gallery with Thickbox? Could this be a Brilliant Gallery issue?

Cheers,
Stella

stella’s picture

Status: Active » Postponed (maintainer needs more info)
stella’s picture

Marked #188077 as a duplicate of this issue.

adriancollins’s picture

I have this problem with both IE6 and IE7 only, loads fine with Firefox though

I have gone through a number of my modules disabling them one by one thinking this might find a conflict but so far to no avail. I have since found that this error only seems to be on the front page of my site and access via other folders such as /admin so far appears to display all the other pages ok

My test site is located at http://www.ourchickens.com/drupal5

I am still looking into this problem when I have time..

stella’s picture

Status: Postponed (maintainer needs more info) » Active

Could you try the latest dev release? It's stable, don't worry. It contains a number of bug fixes, including one for #184962. I doubt it will fix the problem, but it may help.

I'm having problems reproducing the issue on my machine. I'll try another PC this evening.

Cheers,
Stella

jfurry’s picture

Same problem in my drupal env. I have a story with lightbox my home page and get the error. If I go straight to the story, no problem. I'll upgrade my version tomorrow and report back

jacobson’s picture

I have the very same problem on my home page, but not on other pages of the site. Only in IE. Not Firefox. Seems to be triggered part way through the page load and possibly in connection with a flash video.

I have confirmed that the following script triggers the error in IE6:

<p id="player1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/javascript">
	var s1 = new SWFObject("jw_image_rotator/imagerotator.swf","rotator","300","173","7");
	s1.addVariable("file","jw_image_rotator/playlist.xml");
	s1.addVariable("transition","fade");
	s1.addVariable("overstretch","false");
	s1.addVariable("backcolor","0xFFFFFF");
	s1.write("player1");
	<!-- This does not use FlashTools the media player and xml was all manually installed -->
</script>
adriancollins’s picture

Hi,
Interesting last comment in regards to a possible problem with a Flash video as I wondered if this was the case too. (I use a very simple module called GOOGTUBE to easily add Youtube video links to a Drupal site)
I did disable this and it didnt seem to make a difference though - I will look into this further when I am able to but unfortunately my ADSL is down at the moment and I cant do anything further!
Cheers..

stella’s picture

adriancollins: I've had a look again at your website and I get a number of errors in the Firefox error console. The most important one is:

Error: jQuery is not defined
Source File: http://www.ourchickens.com/drupal5/modules/jquery_update/compat-1.0.js     Line: 3

It looks like you may not have installed jQuery Update correctly. Perhaps you should download this module again and re-install it. Don't forget to copy over the misc/jquery.js with the jquery.js included with this module.

jacobson, jfurry: do you have a public website URL that this happens on?

Can people also ensure that there is no blank lines in the disable URLs box on the lightbox2 config page? It shouldn't cause this error, but may cause the lightbox2 javascript to not be loaded at all.

[EDIT] Oh and can people also ensure that they're running the latest dev version? Don't worry, it is stable, and it includes a patch for another issue which might help with this one. And what versions of Drupal are you running? 5.2? 5.3?

Cheers,
Stella

adriancollins’s picture

Hi,

thanks for your last update, I have now tried this again by copying the JQuery update module over again but this made no difference.

I have though downloaded and installed the latest dev version of your module and after clearing the IE7 cache etc it now seems to load ok. I'll also try it with IE6 from another PC when I can but otherwise looks like mine is resolved - thanks for your help!

adriancollins’s picture

Actually looks like I spoke too soon and the problem remains exactly as it was before! DOH!!

stella’s picture

adriancollins: what version of drupal are you using? 5.2? 5.3? Are you now using the dev release as mentioned in comment #6?

adriancollins’s picture

Hi, I am using the latest of everything as far as I am aware, currently Drupal 5.3 (Problem was the same in Drupal 5.2)

Also:
JQuery Update 5.x-1.x-dev (2007-Jun-19)
Lightbox V2 5.x-2.x-dev (2007-Nov-10)

The problem appeared to be the same when I used the earlier stable releases too.

I may have to update a few other modules as Image and a few others look slightly out of date now but I wouldnt have thought any others would have any effect on this

Hope this helps? many thanks..

stella’s picture

I still can't reproduce this issue I'm afraid. I've tried IE7 on two different machines.

Out of interest, does the same thing happen when using "lightbox lite"? Or how about with the original http://www.lokeshdhakar.com/projects/lightbox2/ (previously huddletogether.com) version?

Cheers,
Stella

stella’s picture

StatusFileSize
new9.57 KB

It might also be interesting to see if it happens with both lightbox layouts too, or see if it happens with the 2.0 release.

In any case, I've attached a patch. I've no idea if it will fix it or not since I can't reproduce the problem at all. Here's hoping that it does!

Cheers,
Stella

adriancollins’s picture

Hi thanks for your comments and I'll apply the patch as soon as I am able to (Gotta be honest have to find out how to do this on a Windows PC first of all, never had to do it before)

THis is very weird that you are not able to replicate the problem (I guess you mean you dont see any problem when accessing my website?) I have tried disabling Lightbox 2 today and renabling, clearing the cache in IE etc. Bizarrely it seemed to work ok for the first time without errors, then after going back to the home page it started to happen again.

Still looking into this problem when I can..

Adrian

stella’s picture

Hi Adrian,

Yep, I'm not able to reproduce the problem on your website, or on any of my own. I'm clicking on the image in the sidebar on the front page and it all works fine. This is in IE7 (7.0.5730.11) on Windows XP.

Cheers,
Stella

stella’s picture

StatusFileSize
new23.49 KB

Adrian - attached is the full javascript file. Just copy this file into your lightbox2/js/ directory but be sure to back up the original lightbox.js file first. You'll need to remove the "_.txt" ending too.

Please let me know how you get on.

Cheers,
Stella

adriancollins’s picture

Hi Stella,

Many thanks again for your help and I'll certainly give this a go when I can (I'm away from home for a few days)

Its bizarre that you are able to load the site ok - as I can see the same problem both from my home PC (IE7 running the dreaded Vista) and my Work PC (IE6 on Win2000)

Also weird that it doesnt always happen each time (but nearly always!!) - and that other people havent reported this kind of problem.

Oh well, I'll give it a go anyway

Cheers

sgriffin’s picture

This bug is confirmed with lightbox2-5.x-2.x-dev.tar.gz 11/24/07
ie 6 and ie 7
Operation Aborted.
This bug occurs when using swfobject apparently.

<script type="text/javascript" src="/misc/jquery.js"></script>
<script type="text/javascript" src="/misc/drupal.js"></script>
<script type="text/javascript" src="/modules/jquery_update/compat-1.0.js"></script>
<script type="text/javascript" src="/misc/collapse.js"></script>
<script type="text/javascript" src="/modules/jquery_update/collapse-fix.js"></script>
<script type="text/javascript" src="/scripts/swfobject.js"></script>

<span id="player1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</span>
<script type="text/javascript">
	var s1 = new SWFObject("/themes/bikersdream-new/imagerotator.swf","rotator","984","232","7");
	s1.addVariable("file","/themes/bikersdream-new/playlist.xml");
	s1.addVariable("transition","lines");
	s1.addVariable("overstretch","false");
	s1.addVariable("shuffle","false");
	s1.addVariable("title","Bikers Dream of Atlanta");
	s1.addVariable("backcolor","0xFFFFFF");
	s1.addVariable("width","984");
	s1.addVariable("height","232");
	s1.write("player1");
</script>
sgriffin’s picture

Verified bug against 5.20

Thickbox works.

sgriffin’s picture

Bug has something to do with swfobject and lightbox.
Users with swfobject can not use lightbox and must either choose another box or replace swfobject with ufo.

stella’s picture

sgriffin: would you mind re-testing with the latest dev release (26th Nov) as I've made some changes for another issue (#191623) which may help with this one. It also includes the patch from #17 above.

Cheers,
Stella

sgriffin’s picture

No, it appears to still be happening.

adriancollins’s picture

Stella, You are a star!! - for me at least this has been fixed with the latest dev release from 26th Nov. I'm very happy and I thank you for all of your help on this!!

Just for reference, I updated the patch etc from #19 above and this made what I initially thought was no change. Looking in more detail it had actually become almost exactly what was described at http://drupal.org/node/191623. More intermittent but showing just the image itself in the top left hand corner, and very little else.

Downloading and applying the latest Dev version and clearing the temporary files it now appears to work perfectly in both IE7 and F/Fox. (Amittedly I have yet to test in IE6 from another PC but I am very confident that it is sorted!)

Many thanks again, now I can get on and finish my site!!

Cheers, Adrian

sgriffin’s picture

I may need to do some more testing then. Google Web Accelerator may have sent a cached file.
Upon some views, it did appear to work sometimes.

stella’s picture

adriancollins: that's great news!

sgriffin: hmmm it could be a separate issue, as you suggest with swfobject. If you remove swfobject does it work? Do you have a website with this installed that I can look at? Would you mind double-checking if it works when you clear the cache? Some changes to the javascript were made and it's possible you're still using an old cached version.

Cheers,
Stella

sgriffin’s picture

bikersdreamatl.com was affected with swfobject, I replaced it with ufo to get it working.
Its a high traffic site so I can not test around very much.
swfobject may have some problems of its own with operation aborted, I'm not entirely sure.
I imagine you could do a hotlink on the source and replace ufo, for one of the lightbox pages.

In any case, I'm using the latest lightbox ok. The only issue is a minor display issue. The close button appears before the lightbox expands to encompass it.
But thats very minor and large improvement over thickbox. Thanks!

stella’s picture

Status: Active » Fixed

The original issue reported here has been fixed, so marking as such. There is a separate problem with swfobject integration.

Cheers,
Stella

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

stella’s picture

Released in Lightbox V2 5.x-2.2.

Cheers,
Stella

monstordh’s picture

Version: 5.x-2.1 » 5.x-2.2
Status: Closed (fixed) » Closed (won't fix)

I've applied the new module with the same results. IE 6.5 on PC cannot open the page and reports an "Operation aborted" error. It works on one site, but not another. Please help!

(ps. I think i changed the status to an incorrect one. please forgive me...)

monstordh’s picture

Status: Closed (won't fix) » Needs work
stella’s picture

Status: Needs work » Active

Can you give me a URL to your site? Or can you send me the source code of one of the affected pages?

Cheers
Stella

monstordh’s picture

i had to turn the module off, because IE is my client's primary browser. i can turn it on and then grab the source code if that would help. i'll probably do that here shortly, because my client is in a tizzy to get this working. please let me know if you need something else.

stella’s picture

The lightbox2 settings that you're using would be helpful, along with any errors that appear in Firefox's "Error console" (under Tools menu).

Cheers,
Stella

stella’s picture

update - monstordh sent me the source code and it looks like the swfobject conflict issue again, am investigating.

stella’s picture

StatusFileSize
new2.98 KB

Try the attached patch to fix the issue with SWFObject. There is a new configuration option which allows you to choose where the javascript files are loaded - in the header or footer. By default, the files are loaded in the header, which allows users to click on the images before the page has finished loading.

However, this setting combined with SWFObject causes the "operation aborted" error in IE. So if you are using SWFObject to display Flash objects and want it and lightbox2 to work together in IE, then you will need the 'footer' setting. There are two disadvantages to using the footer setting. First off, images can't be clicked on until the page has finished loading. Secondly, not all themes correctly implement the footer region (e.g. Tech theme) as they have a missing $closure variable. However, it's a one-line change to get it working in any theme that doesn't support it.

Cheers,
Stella

stella’s picture

Status: Active » Fixed
stella’s picture

Released in 5.x-2.3 and 6.x-1.3.

Cheers,
Stella

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

lupus78’s picture

I still have this IE crash with 2.4 version. The only thing which solved the problem for me, is placing the javascript codes in the Footer!

I still have a page which crashes IE, it has a LightBox image and an embeded YouTube video... it's this if you care:
http://www.justacro.com/startplaces/australia/shellys-beach-wa

stella’s picture

Yes, you have to place the javascript in the footer if you receive the "Operation Aborted" error in IE and have flash on the page. You can configure lightbox2 to load in the footer rather than the header under the "advanced settings" collapsed fieldset on the configuration page.

Cheers,
Stella

lupus78’s picture

Yes, I have that done, but it still crashes, but only page where i have other Flash content!

stella’s picture

See #216556 for information on getting YouTube videos to work (basically follow the instructions at http://www.eastwoodzhao.com/day-4-internet-explorer-youtube-compatibilit...).

Cheers,
Stella

lupus78’s picture

Wow, thanks, this solved my problem...

davegan’s picture

I'm still getting this problem with Openads, even when I put Lightbox javascript in the footer.

I'm going to hack around a bit to try to get it working. It would be good to get to the source of the problem. Loading the javascript at the bottom of the page isn't a very good solution, whether it works or not.

davegan’s picture

Fixed it.

changed:
drupal_add_js($path .'/js/lightbox.js', 'module', $js_location);

to
drupal_add_js($path .'/js/lightbox.js', 'module', $js_location, true);

adding the defer attribute ensures all other javascript has loaded on the page. Simply putting lightbox in the footer wasn't enough.

davegan’s picture

Status: Closed (fixed) » Active

reopening issue in hopes of a fix - don't want to keep having changes to the module.

laczikasx’s picture

davegan: tried and does not work. Operation is still aborted on my IE7 only at homepage.
lightbox staff: please consider ms kb article 927917 here: http://support.microsoft.com/default.aspx/kb/927917

quadbyte’s picture

subscribing

stella’s picture

laczikasx: i've already read that article, that's why you need to configure lightbox2 javascript files to load in the footer rather than the header, which you can do under the "advanced settings" section of the settings page.

Cheers,
Stella

stella’s picture

davegan: setting the "defer" attribute to true for me didn't fix the problem. I remember having worse problems with it when I tried that. Which browsers did you test your changes in?

stella’s picture

Status: Active » Postponed (maintainer needs more info)
stella’s picture

Status: Postponed (maintainer needs more info) » Fixed

Try using the latest Lightbox2 5.x-2.6 release.

No information forthcoming so closing.

Cheers,
Stella

Wolfmark’s picture

Status: Fixed » Active
StatusFileSize
new40.69 KB

I had the same error on IE 6 on a site without any flash movies.

The problem is that "Lightbox.initialize()" javascript function is called before the document is completely loaded, due to a jQuery bug, which was fixed starting with version 1.1.4: http://dev.jquery.com/ticket/1320. Unfortunately jQuery Update module 5.x-1.0 includes the version 1.1.2, which is buggy.

So the solution is to download jQuery v1.1.4 and replace the version provided by jQuery update module.

Maybe this will fix the problem with flash movies too.

The attachment contains jQuery v1.1.2 and v1.1.4 (without any modifications) and a simple HTML page which shows the bug. When the document is loaded it displays two alerts with latest 300 characters from body. Using v1.1.2 sometimes the first message contains HTML code from inside page, which means that the document was not completely loaded before the handler was called. Refresh the page few times to see the differences.

stella’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

matus’s picture

Grazie mille :)

Thanks

You saved my ass :)))))))